﻿<%@ Page language="c#" Codebehind="ManageVideoTypes.aspx.cs" AutoEventWireup="false" Inherits="VideoWorld.Management.ManageVideoType" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>ManageVideoType</title>
		<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
		<meta content="C#" name="CODE_LANGUAGE">
		<meta content="JavaScript" name="vs_defaultClientScript">
		<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
	</HEAD>
	<body MS_POSITIONING="GridLayout">
		<form id="Form1" method="post" runat="server">
			<FONT face="宋体">
				<TABLE id="Table1" cellSpacing="1" cellPadding="1" width="100%" border="1">
					<TR>
						<TD align="center"><BR>
							<asp:Button id="buttonAdd" runat="server" Text="添加" CausesValidation="False"></asp:Button>
							<asp:Button id="buttonModify" runat="server" Text="修改" CausesValidation="False"></asp:Button><BR>
							<asp:label id="LabelMessage" runat="server"></asp:label>
							<BR>
							<TABLE id="tableAdd" cellSpacing="1" cellPadding="1" width="100%" border="1" runat="server">
								<TR>
									<TD>视频类别</TD>
									<TD><asp:textbox id="textBoxName" runat="server" Width="257px"></asp:textbox><asp:requiredfieldvalidator id="RequiredFieldValidator1" runat="server" ErrorMessage="请填写名称" ControlToValidate="textBoxName"></asp:requiredfieldvalidator></TD>
								</TR>
								<TR>
									<TD>介绍</TD>
									<TD><asp:textbox id="textBoxSummary" runat="server" Width="308px" Height="96px" TextMode="MultiLine"></asp:textbox><asp:requiredfieldvalidator id="RequiredFieldValidator2" runat="server" ErrorMessage="请填写介绍" ControlToValidate="textBoxName"></asp:requiredfieldvalidator></TD>
								</TR>
								<TR>
									<TD></TD>
									<TD>
										<asp:Button id="buttonAddVideoType" runat="server" Text="添加"></asp:Button></TD>
								</TR>
							</TABLE>
							<asp:DataGrid id="dataGridVideoType" runat="server" BorderColor="#999999" BorderStyle="Solid"
								BorderWidth="3px" CellSpacing="2" BackColor="#CCCCCC" CellPadding="4" ForeColor="Black" Width="98%"
								AutoGenerateColumns="False" CaptionAlign="Top">
								<SelectedItemStyle Font-Bold="True" ForeColor="White" BackColor="#000099"></SelectedItemStyle>
								<ItemStyle BackColor="White"></ItemStyle>
								<HeaderStyle Font-Bold="True" ForeColor="White" BackColor="Black"></HeaderStyle>
								<FooterStyle BackColor="#CCCCCC"></FooterStyle>
								<Columns>
									<asp:BoundColumn DataField="ID" ReadOnly="True" HeaderText="ID">
										<HeaderStyle Width="10px"></HeaderStyle>
									</asp:BoundColumn>
									<asp:TemplateColumn HeaderText="视频类别">
										<HeaderStyle Width="150px"></HeaderStyle>
										<ItemTemplate>
											<asp:Label id=labelName runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.Name") %>'>
											</asp:Label>
										</ItemTemplate>
										<EditItemTemplate>
											<asp:TextBox id=textBoxName runat="server" Width="254px" Text='<%# DataBinder.Eval(Container, "DataItem.Name") %>'>
											</asp:TextBox>
										</EditItemTemplate>
									</asp:TemplateColumn>
									<asp:TemplateColumn HeaderText="介绍">
										<EditItemTemplate>
											<asp:TextBox id=textBoxSummary runat="server" Width="400px" Text='<%# DataBinder.Eval(Container, "DataItem.Summary") %>' TextMode="MultiLine" Height="131px">
											</asp:TextBox>
										</EditItemTemplate>
									</asp:TemplateColumn>
									<asp:EditCommandColumn ButtonType="PushButton" UpdateText="更新" CancelText="取消" EditText="修改">
										<HeaderStyle Width="60px"></HeaderStyle>
									</asp:EditCommandColumn>
									<asp:ButtonColumn Text="删除" ButtonType="PushButton" CommandName="Delete">
										<HeaderStyle Width="60px"></HeaderStyle>
									</asp:ButtonColumn>
								</Columns>
								<PagerStyle HorizontalAlign="Left" ForeColor="Black" BackColor="#CCCCCC" Mode="NumericPages"></PagerStyle>
							</asp:DataGrid></TD>
					</TR>
				</TABLE>
			</FONT>
		</form>
	</body>
</HTML>
